<?php
$this->load->view("header");
?>
<div id="main_content">
<div class="top_margin"></div>

<div class="homepage_mid_column">
<b>全场<font color="red">5折</font>！所有二手书均为浙大课程所用版本，请选择你想订购的书籍</b><br>
<form action = "<?=site_url()?>/zjub2c/order_additional" method = "post">

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">数学/物理类</div>
<?php foreach($books as $book){ if($book->tmp_category==1&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php 
  } }?>
</div>

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">生物/化学/医学类</div>
<?php foreach($books as $book){ if($book->tmp_category==2&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">电类/计算机</div>
<?php foreach($books as $book){ if($book->tmp_category==3&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>


<div class="bottom_margin"></div>

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold" >人文/社科类</div>
<?php foreach($books as $book){ if($book->tmp_category==7&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>


<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">经管类</div>
<?php foreach($books as $book){ if($book->tmp_category==5&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">英语/出国考试</div>
<?php foreach($books as $book){ if($book->tmp_category==6&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>

<div class="bottom_margin"></div>
<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">通识类</div>
<?php foreach($books as $book){ if($book->tmp_category==4&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>

<div class="book_charts" style="width:270px;">
<div class="book_chart_title" style="font-weight: bold">其他理工</div>
<?php foreach($books as $book){ if($book->tmp_category==8&&$book->num_stock>0){?>
<input type="checkbox" name="bookid[]" value ="<?=$book->id ?>" ><?=$book->title?>-<?=$book->author?>-￥<?=$book->price?><br>
<?php
  } }?>
</div>


<div class="bottom_margin"></div>

<input type="submit" value="立刻购买">
</form>



</div>


<div class="bottom_margin"></div>
<div class="div-footer"><div class="div-footer-intl-links"></div>
<div class="div-footer-links"></div>
<?=anchor('bookiki/index', '首页');?> - <?=anchor('bookiki/about', '关于书易');?> - <?=anchor('bookiki/about_eng', 'About Bookiki');?> - <?=anchor('bookiki/faq', '使用帮助');?>
&nbsp;-&nbsp;©2009&nbsp;-&nbsp;
<a href="http://www.miibeian.gov.cn/">浙ICP备09067748号</a>
</div>  <!--div-footer-->


</div> <!--main_content-->

</div>  <!--end of body agent-->
</body>
</html>